package com.centerm.structure.dto;

import java.util.List;

import com.centerm.structure.domain.Permission;

public class PermissionTreeInfo {
	private Integer id;
	private String code;
	private String name;
	private Integer parentId;
	private String description;
	private String path;
	private Integer level;
	private List<PermissionTreeInfo> children;

	public PermissionTreeInfo(Permission permission) {
		this.id = permission.getId();
		this.code = permission.getCode();
		this.name = permission.getName();
		this.parentId = permission.getParentId();
		this.description = permission.getDescription();
		this.path = permission.getPath();
		this.level = permission.getLevel();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<PermissionTreeInfo> getChildren() {
		return children;
	}

	public void setChildren(List<PermissionTreeInfo> children) {
		this.children = children;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
}
